package br.org.crm.exceptions;

import org.apache.log4j.Logger;

import br.org.crm.beans.LoginBean;

@SuppressWarnings("serial")
public class UsuarioException extends Exception{
	
	static final Logger logger = Logger.getLogger(UsuarioException.class);
	
	private String msg;
	
	public UsuarioException(){
		super();
	}
	
	public UsuarioException(Exception ex){
		super(ex);
		logger.error(ex);
	}
	
	public UsuarioException(String msg){
		this.msg = msg;
	}
	
	public String getMessage(){
		return msg;
	}
}
